package cn.operation.backend.enums;

/**
 * The enum base status enum.
 */
public enum BaseAreaLevelEnum {

    PROVINCE("province","省"),
    CITY("city","市"),
    COUNTY("county","县"),
	POINT("point","网点");
    private final String value;
    private final String text;

    BaseAreaLevelEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

    /**
     * Gets value.
     *
     * @return the value
     */
    public String getValue() {
        return value;
    }

    /**
     * Gets text.
     *
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * Get by value d waybill status enum.
     *
     * @param value the value
     * @return the d waybill status enum
     */
    public static BaseAreaLevelEnum getByValue(String value) {
        for (BaseAreaLevelEnum temp : BaseAreaLevelEnum.values()) {
            if (temp.getValue() == value) {
                return temp;
            }
        }
        return null;
    }
}
